﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DB_EntityFramework
{
    [Table("Employer")]
    public class Employer:User
    {
        //[Key]
        //public int Id { get; set; }
        [Required]
        public string Name { get; set; }
        [Required]
        public int Salary { get; set; }
        [Required]
        public int CityID { get; set; }
        [Required]
        public int ContactID { get; set; }
        [Required]
        public string Address { get; set; }
        [Required]
        public string Phone { get; set; }
        [Required]
        public string Skype { get; set; }
        public virtual List<Vacancy> Vacancies { get; set; }
    }
}
